<template>
	<view>
		<!-- <u--image 
		  src="https://cdn.uviewui.com/uview/album/1.jpg" 
		  shape="circle" 
		  height="50px" 
		  width="50px" >
		  </u--image>
		  <!-- icon="integral-fill" -->
		  <u-cell-group>
		  <u-cell title="个人资料" size="large" :isLink="true" @click="showuser()"></u-cell>
		  <u-cell title="清除缓存" size="large" :isLink="true"></u-cell>
		  <u-cell title="版本更新" size="large" :isLink="true"></u-cell>
		  <u-cell title="给我评分" size="large" :isLink="true"></u-cell>
		  <u-cell title="用户协议" size="large" :isLink="true"></u-cell>
		  <u-cell title="隐私政策" size="large" :isLink="true"></u-cell>
		  <u-cell title="关于博添" size="large" :isLink="true"></u-cell>
		  </u-cell-group>
		  <br>
		  <u-button size="large" color="rgb(85, 170, 255)" style="width: 80%; text-align: center;" @click=loyLogin()>
		  	<text style="color: rgb(255, 255, 255);">退出</text>
		  </u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
			
		methods:{
			/* 个人资料 */
			showuser(){
				uni.navigateTo({
					url: '/pages/user/setup/users'
				});
			},
			/* 退出登陆 */
			loyLogin(){
				uni.setStorageSync('stu',{});
				uni.setStorageSync('user',{});
				uni.showToast({
					icon: 'success',
					position: 'bottom',
					title: '退出成功'
				});
				uni.reLaunch({
					url: '/pages/user/user'
				});
			},
		}
	}
</script>

<style lang="scss">

</style>
